package com.yufubao.service.service.applet.product;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yufubao.framework.result.PageUtils;
import com.yufubao.framework.result.ResponseResult;
import com.yufubao.model.pojo.applet.product.SupplierProductCategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 产品分类表
 *
 * @author zhangzhan
 * @email 52194440@qq.com
 * @date 2024-08-26 21:31:25
 */
public interface SupplierProductCategoryService extends IService<SupplierProductCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * @description applet产品分类树化
     *
     * @return com.yufubao.common.result.ResponseResult
     * @author zhangyiheng
     * @date 2024/8/26 21:39
     */
    ResponseResult listTree();

    /**
     * @description 回显分类所有层级路径id
     * @param catelogId
     * @return java.lang.Long[]
     * @author zhangyiheng
     * @date 2024/8/28 22:38
     */
    Long[] getCatelogIdPath(Long catelogId);


    /**
     * @description 修改
     * @param category 
     * @return void
     * @author zhangyiheng 
     * @date 2024/9/18 18:48
     */
    void updateByIdAndintermediateTable(SupplierProductCategoryEntity category);

    /**
     * @description 删除
     * @param list
     * @return void
     * @author zhangyiheng
     * @date 2024/9/18 18:59
     */
    void removeMenuByIds(List<Long> list);
}

